
//课程（编号、课程名称、上课地点、时间）
class course{
    int id;
    String cname;
    String place;
    String time;
    teacher teacher;
    course(int i,String n,String p,String t){
        id=i;
        cname=n;
        place=p;
        time=t;
    }
    void kk(teacher r){
        teacher = r;
    }
    public String toString(){
    return "课程序号:"+this.id+" 课程名称："+this.cname+" 课程地点："+this.place+" 课程时间："+this.time;
    }
}